//
//  SNPlanListViewController.h
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/24.
//  Copyright © 2016年 stone. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SNPlantingDecisionMakerModel.h"
@interface Pest : NSObject

@property (nonatomic,copy) NSString  *pestBrand;
@property (nonatomic,copy) NSString  *pestId;
@property (nonatomic,copy) NSString  *pestPerUse;
@property (nonatomic,copy) NSString  *planNo;
@property (nonatomic,copy) NSString  *pestPrice;
@property (nonatomic,copy) NSString  *pestManu;
@property (nonatomic,copy) NSString  *pestTypes;
@property (nonatomic,copy) NSString  *pestTotal;
@end

@interface Fert : NSObject

@property (nonatomic,copy) NSString  *fertPrice;
@property (nonatomic,copy) NSString  *planNo;
@property (nonatomic,copy) NSString  *fertContent;
@property (nonatomic,copy) NSString  *fertId;
@property (nonatomic,copy) NSString  *fertTypes;
@property (nonatomic,copy) NSString  *fertManu;
@property (nonatomic,copy) NSString  *fertPerUse;
@property (nonatomic,copy) NSString  *fertTotal;
@property (nonatomic,copy) NSString  *fertBrand;

@end

@interface Land : NSObject
@property (nonatomic,copy) NSString  *planNo;
@property (nonatomic,copy) NSString  *planArea;
@property (nonatomic,copy) NSString  *availableArea;
@property (nonatomic,copy) NSString  *landLocation;
@property (nonatomic,copy) NSString  *LandType;

@end
//=****** add class ****************** stone ***
@interface SNPlanListModel : NSObject

/** 计划编号 */
@property (nonatomic,copy) NSString * planNo;
/** 种子名称 */
@property (nonatomic,copy) NSString * seedName;

/** type: 0: 待提交 1:待审核 2:已通过 */
@property (nonatomic, copy) NSString* status;

@property (nonatomic, copy) NSString* cropType;

@property (nonatomic, copy) NSString* fullName;

@property (nonatomic, copy) NSString* planName;

@property (nonatomic, copy) NSString* seedTotal;
@property (nonatomic, copy) NSString* plantingArea;

@property (nonatomic, copy) NSString* createTime;
@property (nonatomic, copy) NSString* operators;
@property (nonatomic, copy) NSString* seedManu;
@property (nonatomic, copy) NSString* seedPerUse;
@property (nonatomic, copy) NSString* seedPrice;
@property (nonatomic, copy) NSString* startTime;
@property (nonatomic,copy) NSString  *plantTypes;


@property (nonatomic,strong) NSArray<Pest *>*pestList;
@property (nonatomic,strong) NSArray<Fert *>*fertList;
@property (nonatomic,strong) NSArray<Land *>*landList;


- (instancetype)initWithPlanIdentifier:(NSString *)planIdentifier seedName:(NSString *)seedName type:(NSString *)type;

@end

#import "SNProductionPlanListModel.h"
@interface SNPlanListViewController : UIViewController
/** empty */
@property (nonatomic, assign,getter=isEmpty) BOOL empty;
/** 头像模型 , SNPlantingDecisionMakerResult * model */
@property (nonatomic,strong) SNPlantingDecisionMakerResult * plantingDecisionMakerResult;
/** year */
@property (nonatomic,copy) NSString * year;
/** 列表模型 */
+ (SNProductionPlanListModel *)getProductionPlanListModel;
+ (void)setProductionPlanListModel:(SNProductionPlanListModel *)productionPlanListModel;

+ (SNPlantingDecisionMakerResult *)getPlantingDecisionMakerResult;
+ (void)setPlantingDecisionMakerResult:(SNPlantingDecisionMakerResult *)plantingDecisionMakerResult;

@end
